function z = bard2(x)
%Bard function
%n=3,m=15,x0=[0.4,1,0]
%fmin1=1.12793*10^(-8)
%Author:Ji Lin
y=[0.0009,0.0044,0.0175,0.0540,0.1295,0.2420,0.3521,0.3989,0.3521,0.2420,0.1295,0.0540,0.0175,0.0044,0.0009];
t=(8-(1:15))/2;
z=ones(1,15);
for ii=1:15
    z(ii)=x(1)*exp(-x(2)*(t(ii)-x(3))^2/2)-y(ii);
end
z=sum(z.^2);
